//
//  CityDOSDK.m
//  CityDOSDK
//
//  Created by CityDo on 2018/10/12.
//  Copyright © 2018年 CityDo. All rights reserved.
//

#import "CityDOSDK.h"
//#import "STLivenessController.h"
#import "STLivenessCommon.h"
//#import "STLivenessDetector.h"
//#import "LivingSettingGLobalData.h"

@interface CityDOSDK()


@end

@implementation CityDOSDK

/**
 *安全核验SDK初始化
 * @return 初始化SDK
 */
+ (CityDOSDK *)initCityDOSDK
{
    static CityDOSDK *cityDOSDK = nil;
    static dispatch_once_t predicate;
    dispatch_once(&predicate, ^{
        cityDOSDK = [[self alloc] init];
    });
    return cityDOSDK;
}

/**
 *安全核验登录注册控制器
 * @return 人脸声纹管理器
 */
//+(STLivenessController *) cityDOLoginController {
//
//    NSArray *arrLivenessSequence = @[@(LIVE_MOUTH)];
//   STLivenessController * livenessVC = [[STLivenessController alloc]
//                       initWithApiKey:ACCOUNT_API_KEY
//                       apiSecret:ACCOUNT_API_SECRET
//                       setDelegate:(id)self
//                       detectionSequence:arrLivenessSequence];
//
//    //设置每个模块的超时时间
//    [livenessVC.detector setTimeOutDuration:kDefaultTimeOutDuration];
//
//    // 设置活体检测复杂度
//    [livenessVC.detector setComplexity:[LivingSettingGLobalData sharedInstanceData].liveComplexity];
//
//    // 设置活体检测的阈值
//    [livenessVC.detector setHacknessThresholdScore:kDefaultHacknessThresholdScore];
//    [livenessVC.detector setTimeOutDuration:20.0];
//
//    // 设置是否进行眉毛遮挡的检测，如不设置默认为不检测
//    livenessVC.detector.isBrowOcclusion = NO;
//    livenessVC.isRegister = NO;
//
//    return livenessVC;
//}

/**
*安全核引导页控制器
* @return 安全核引导页控制器
*/
+(UIViewController *) guidePageController{
    
    UIStoryboard *board = [UIStoryboard storyboardWithName:@"GuidPages" bundle:nil];
    UIViewController *vc = [board instantiateViewControllerWithIdentifier:@"RootViewController"];
    
    return vc;
    
}

/**
 *  成功界面
 *  跳转至成功界面
 */
//+(SuccessViewController *) toSuccessPage;
//{
//    UIStoryboard *board = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
//    SuccessViewController  *vc = [board instantiateViewControllerWithIdentifier:@"SuccessViewController"];
//
//    return vc;
//}

/**
 *  失败界面
 *  跳转至成功界面
 */
//+(FailureViewController *) toFailurePage;
//{
//    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
//    FailureViewController *failureVC = [storyboard instantiateViewControllerWithIdentifier:@"FailureViewController"];
//    return failureVC;
//}

/**
 *  完善信息界面
 *  跳转至完善信息界面
 */
//+(CompleteInfoViewController *) toCompleteInfoPage;
//{
//    UIStoryboard *board = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
//    CompleteInfoViewController *vc = [board instantiateViewControllerWithIdentifier:@"CompleteInfoViewController"];
//    return vc;
//}

//- (void)livenessDidFailWithErrorType:(LivefaceErrorType)errorType protobufData:(NSData *)protobufData requestId:(NSString *)requestId images:(NSArray *)imageArr {
//
//}
//
//- (void)livenessDidSuccess:(NSData *)data image:(UIImage *)image {
//
//}
//
//- (void)livenessDidSuccessfulGetProtobufId:(NSString *)protobufId protobufData:(NSData *)protobufData requestId:(NSString *)requestId images:(NSArray *)imageArr {
//
//}
//
//- (void)livenessControllerDeveiceError:(STIdDeveiceError)deveiceError {
//
//}

@end

